home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / bash1135 / builtins / makefile < prev   
Makefile  |  1994-02-20  |  9KB  |  233 lines

  1. # This Makefile for building libbuiltins.a is in -*- text -*- for Emacs.
  2. #
  3. MKBUILTINS = mkbuiltins
  4. RANLIB = /usr/bin/ranlib
  5. CFLAGS = -g -I.. -I.
  6. SHELL = /bin/sh
  7. # CC = cc
  8. AR = ar
  9. RM = rm -f
  10. CP = cp
  11.  
  12. .SUFFIXES:
  13. .SUFFIXES: .def .c .o
  14. # How to make a .o file from a .def file.
  15. .def.o:
  16.     ./$(MKBUILTINS) $(DIRECTDEFINE) $*.def
  17.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c
  18.     $(RM) $*.c
  19.  
  20. # How to make a .c file from a .def file.
  21. .def.c:
  22.     $(RM) $@
  23.     ./$(MKBUILTINS) $(DIRECTDEFINE) $*.def
  24.  
  25. # Here is a rule for making .o files from .c files that does not
  26. # force the type of the machine (like -M_MACHINE) into the flags.
  27. .c.o:
  28.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c
  29.  
  30. DEFS =  alias.def bind.def break.def builtin.def cd.def colon.def \
  31.     command.def declare.def echo.def enable.def eval.def \
  32.     exec.def exit.def fc.def fg_bg.def hash.def help.def history.def \
  33.     jobs.def kill.def let.def read.def return.def set.def setattr.def \
  34.     shift.def source.def suspend.def test.def times.def trap.def \
  35.     type.def ulimit.def umask.def wait.def getopts.def reserved.def \
  36.     gem.def
  37.  
  38. STATIC_SOURCE = common.c getopt.c bashgetopt.c getopt.h 
  39.  
  40. OFILES = builtins.o \
  41.     alias.o bind.o break.o builtin.o cd.o colon.o command.o \
  42.     common.o declare.o echo.o enable.o eval.o exec.o exit.o \
  43.     fc.o fg_bg.o hash.o help.o history.o jobs.o kill.o \
  44.     let.o read.o return.o set.o setattr.o shift.o source.o \
  45.     suspend.o test.o times.o trap.o type.o ulimit.o umask.o \
  46.     wait.o getopts.o getopt.o bashgetopt.o gem.o
  47.  
  48. THINGS_TO_TAR = $(DEFS) $(STATIC_SOURCE) Makefile ChangeLog
  49.  
  50. CREATED_FILES = builtext.h builtins.c psize.aux pipesize.h
  51.  
  52. all: $(MKBUILTINS) libbuiltins.a
  53.  
  54. libbuiltins.a: $(MKBUILTINS) $(OFILES)
  55.     $(RM) $@
  56.     $(AR) cr $@ $(OFILES)
  57.     -if [ -f "$(RANLIB)" ]; then $(RANLIB) $@; fi
  58.     $(RM) $(patsubst lib%.a,%.olb,$@)
  59.     ln $@ $(patsubst lib%.a,%.olb,$@)
  60.  
  61. builtext.h builtins.c: $(MKBUILTINS) $(DEFS)
  62.     $(RM) builtext.h builtins.c
  63.     ./$(MKBUILTINS) -externfile builtext.h -structfile builtins.c \
  64.     -noproduction $(DIRECTDEFINE) $(DEFS)
  65.  
  66. mkbuiltins: mkbuiltins.c ../config.h
  67.     $(CC) $(CFLAGS) -o $(MKBUILTINS) mkbuiltins.c
  68.  
  69. ulimit.o: ulimit.def pipesize.h
  70.  
  71. pipesize.h:    psize.aux
  72.     $(SHELL) ./psize.sh > pipesize.h
  73.  
  74. psize.aux:    psize.c
  75.     $(CC) $(CFLAGS) -o $@ psize.c
  76.  
  77. documentation: builtins.texi
  78.  
  79. $(OFILES):    $(MKBUILTINS) ../config.h
  80.  
  81. builtins.texi: $(MKBUILTINS)
  82.     ./$(MKBUILTINS) -documentonly $(DEFS)
  83.  
  84. clean:
  85.     $(RM) $(OFILES) $(CREATED_FILES) $(MKBUILTINS) libbuiltins.a
  86.  
  87. alias.o: alias.def
  88. bind.o: bind.def
  89. break.o: break.def
  90. builtin.o: builtin.def
  91. cd.o: cd.def
  92. colon.o: colon.def
  93. command.o: command.def
  94. declare.o: declare.def
  95. echo.o: echo.def
  96. enable.o: enable.def
  97. eval.o: eval.def
  98. exec.o: exec.def
  99. exit.o: exit.def
  100. fc.o: fc.def
  101. fg_bg.o: fg_bg.def
  102. hash.o: hash.def
  103. help.o: help.def
  104. history.o: history.def
  105. jobs.o: jobs.def
  106. kill.o: kill.def
  107. let.o: let.def
  108. read.o: read.def
  109. return.o: return.def
  110. set.o: set.def
  111. setattr.o: setattr.def
  112. shift.o: shift.def
  113. source.o: source.def
  114. suspend.o: suspend.def
  115. test.o: test.def
  116. times.o: times.def
  117. trap.o: trap.def
  118. type.o: type.def
  119. umask.o: umask.def
  120. wait.o: wait.def
  121. getopts.o: getopts.def
  122. reserved.o: reserved.def
  123. gem.o: gem.def
  124.  
  125. common.o: ../shell.h ../command.h ../config.h ../general.h ../error.h
  126. common.o: ../variables.h ../input.h hashcom.h
  127. common.o: ../quit.h  ../unwind_prot.h ../maxpath.h ../jobs.h ../builtins.h
  128. alias.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  129. alias.o: ../quit.h
  130. alias.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  131. bind.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  132. bind.o: ../shell.h ../unwind_prot.h ../variables.h bashgetopt.h
  133. break.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  134. break.o: ../quit.h 
  135. break.o: ../shell.h ../unwind_prot.h ../variables.h 
  136. builtin.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  137. builtin.o: ../quit.h common.h
  138. builtin.o: ../shell.h ../unwind_prot.h ../variables.h 
  139. cd.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  140. cd.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  141. command.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  142. command.o: ../quit.h bashgetopt.h
  143. command.o: ../shell.h ../unwind_prot.h ../variables.h 
  144. declare.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  145. declare.o: ../quit.h 
  146. declare.o: ../shell.h ../unwind_prot.h ../variables.h 
  147. echo.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  148. echo.o: ../quit.h 
  149. echo.o: ../shell.h ../unwind_prot.h ../variables.h 
  150. enable.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  151. enable.o: ../quit.h 
  152. enable.o: ../shell.h ../unwind_prot.h ../variables.h 
  153. eval.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  154. eval.o: ../shell.h ../unwind_prot.h ../variables.h 
  155. exec.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  156. exec.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  157. exit.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  158. exit.o: ../quit.h
  159. exit.o: ../shell.h ../unwind_prot.h ../variables.h 
  160. fc.o: ../builtins.h ../command.h bashgetopt.h
  161. fc.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  162. fc.o: ../flags.h ../unwind_prot.h ../variables.h ../shell.h 
  163. fg_bg.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  164. fg_bg.o: ../quit.h 
  165. fg_bg.o: ../shell.h ../unwind_prot.h ../variables.h 
  166. getopts.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  167. getopts.o: ../shell.h ../unwind_prot.h ../variables.h 
  168. hash.o: ../builtins.h ../command.h 
  169. hash.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  170. hash.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  171. help.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  172. help.o: ../quit.h 
  173. help.o: ../shell.h ../unwind_prot.h ../variables.h 
  174. history.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  175. history.o: ../quit.h
  176. history.o: ../filecntl.h ../shell.h ../unwind_prot.h ../variables.h 
  177. inlib.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  178. inlib.o: ../shell.h ../unwind_prot.h ../variables.h 
  179. jobs.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  180. jobs.o: ../quit.h bashgetopt.h
  181. jobs.o: ../shell.h ../unwind_prot.h ../variables.h 
  182. kill.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  183. kill.o: ../quit.h
  184. kill.o: ../shell.h ../trap.h ../unwind_prot.h ../variables.h 
  185. let.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  186. let.o: ../quit.h 
  187. let.o: ../shell.h ../unwind_prot.h ../variables.h 
  188. read.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  189. read.o: ../quit.h 
  190. read.o: ../shell.h ../unwind_prot.h ../variables.h 
  191. return.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  192. return.o: ../quit.h 
  193. return.o: ../shell.h ../unwind_prot.h ../variables.h 
  194. set.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  195. set.o: ../quit.h 
  196. set.o: ../shell.h ../unwind_prot.h ../variables.h 
  197. setattr.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  198. setattr.o: ../quit.h common.h bashgetopt.h
  199. setattr.o: ../shell.h ../unwind_prot.h ../variables.h 
  200. shift.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  201. shift.o: ../quit.h 
  202. shift.o: ../shell.h ../unwind_prot.h ../variables.h 
  203. source.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  204. source.o: ../quit.h 
  205. source.o: ../shell.h ../unwind_prot.h ../variables.h 
  206. suspend.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  207. suspend.o: ../quit.h
  208. suspend.o: ../shell.h ../unwind_prot.h ../variables.h 
  209. test.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  210. test.o: ../quit.h 
  211. test.o: ../shell.h ../unwind_prot.h ../variables.h 
  212. times.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  213. times.o: ../quit.h
  214. times.o: ../shell.h ../unwind_prot.h ../variables.h 
  215. trap.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  216. trap.o: ../quit.h common.h
  217. trap.o: ../shell.h ../unwind_prot.h ../variables.h 
  218. type.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  219. type.o: ../quit.h common.h
  220. type.o: ../shell.h ../unwind_prot.h ../variables.h 
  221. ulimit.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  222. ulimit.o: ../quit.h 
  223. ulimit.o: ../shell.h ../unwind_prot.h ../variables.h 
  224. umask.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  225. umask.o: ../quit.h 
  226. umask.o: ../shell.h ../unwind_prot.h ../variables.h 
  227. wait.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  228. wait.o: ../quit.h 
  229. wait.o: ../shell.h ../unwind_prot.h ../variables.h 
  230. gem.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  231. gem.o: ../quit.h
  232. gem.o: ../shell.h ../unwind_prot.h ../variables.h 
  233.